<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <title>院系简介</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="">
    <script type="text/javascript" src="__JS__/menu.js"></script>
    <script type="text/javascript" src="__JS__/leftmenubar.js"></script>
    <link rel="stylesheet" href="__JS__/kindeditor/themes/default/default.css" />
    <link rel="stylesheet" href="__JS__/kindeditor/plugins/code/prettify.css" />
    <script charset="utf-8" src="__JS__/kindeditor/kindeditor.js"></script>
    <script charset="utf-8" src="__JS__/kindeditor/lang/zh_CN.js"></script>
    <script charset="utf-8" src="__JS__/kindeditor/plugins/code/prettify.js"></script> 
    <script>
        KindEditor.ready(function(K) {
            var editor1 = K.create('textarea[name="text"]', {
                cssPath : '__JS__/kindeditor/plugins/code/prettify.css',
                uploadJson : '__JS__/kindeditor/php/upload_json.php?no=<?php echo ($no); ?>',
                fileManagerJson : '__JS__/kindeditor/php/file_manager_json.php?no=<?php echo ($no); ?>',
                allowFileManager : true,
                afterCreate : function() {
                    var self = this;
                    K.ctrl(document, 13, function() {
                        self.sync();
                        K('form[name=discuss]')[0].submit();
                    });
                    K.ctrl(self.edit.doc, 13, function() {
                        self.sync();
                        K('form[name=discuss]')[0].submit();
                    });
                }
            });
            prettyPrint();
        });
    </script>
    <script type="text/javascript" src="__JS__/jshelper.js"></script> 
    <script type="text/JavaScript">
        function discussdelete(id,courseid){
            if (confirm("你确定要删除吗")==true) {
                //posthelper([["id",id],],'__URL__/discussdelete');
                postwith('__URL__/discussdelete',{id:id,courseid:courseid});
            }
        }
    
                window.onload=show;
    
    </script>
    <script type="text/javascript" src="__JS__/jQuery/jquery.js"></script>
    <script type="text/javascript" src="__JS__/jQuery/jquery.form.js"></script>
    <script type="text/JavaScript">
    $(function(){
        $('#form1').ajaxForm({
            //beforeSubmit:  function(){alert("before");},  // pre-submit callback
            success:       complete,  // post-submit callback
            error:function(){alert("error");},
            dataType: 'json'
        });
        
        function complete(data){
            if (data.status==1)
            {
                window.location=window.location.href;
            }else{
                $('#result').html(data.info).show();
            }
        }
    });
    </script>
</head>
<body>
<!-- layout::Auth:header::0 -->
 <div class="container-fluid">
      <div class="row-fluid">
      	<div class="span12">
          <div class="hero-unit">
                <h3><?php echo ($dname); ?>院系简介
                    <p  style="font-size:16px" class="navbar-text pull-right">
                        课程总数：<?php echo ($count); ?>
                        <span class="label label-info" style="font-size:16px; background-color:#CCC">
                            <a href='__URL__/department/id/<?php echo ($departmentid); ?>'>进入课程展示</a>
                        </span>
                    </p>
                </h3>
                
                <p style="font-size:12px">当前位置：
                    <a href='__APP__/index/index' class="nowpositionhref">主页</a>>
                    <a href='__URL__/index' class="nowpositionhref">院系展示</a>>
                    <a href='__URL__/custom1/id/<?php echo ($departmentid); ?>' class="nowpositionhref"><?php echo ($dname); ?></a>
                </p>
                <table style="width:100%">
                    <tr style="text-align:center">
                        <td><h2>院系简介</h2></td>
                    </tr>
                </table>
                <hr/>
                <table>
                    <tr>
                        <td class="span6">
                            作者：<?php echo ($a["nname"]); ?>
                        </td>
                        <td class="span6">
                            发布时间：<?php echo ($a["time"]); ?>
                        </td>
                        <td class="span2">
                            浏览次数：<?php echo ($a["pv"]); ?>
                        </td>
                    </tr>
                </table>
                <hr>
                <table style="width:100%; font-size:16px"  align="center">
                    <tr>
                        <td><?php echo ($a["text"]); ?>
                        </td>
                    </tr>
                </table>
           </div>
         </div>
       </div>
    </div>
    <p  class="navbar-text pull-right"><?php echo ($page); ?></p>
</body>
</html>